<template>
    <div>
        <leveList :list="tableData" type="1"></leveList>
    </div>
</template>

<script setup lang="ts">

import { ref, onMounted } from "vue";

import leveList from "../components/LeveList.vue";

import { AllLeveList } from '@/server/leveServer';

const tableData: any = ref([]);

onMounted(async () => {
    const res = await AllLeveList()
    console.log(res.data.result);
    tableData.value = res.data.result
    console.log(tableData.value);

})


</script>

<style scoped>

</style>